<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
{include file="public/top"}
<link href="__STATIC__/admin/css/common.css" type="text/css" rel="stylesheet"/>
<link href="__STATIC__/admin/css/index.css" type="text/css" rel="stylesheet"/>
<script src="__STATIC__/admin/js/jquery.js"></script>
<script src="__STATIC__/admin/js/imgUp.js"></script>
</head>
<body>
<article class="page-container">
	<form action="{:url('Merchant/rwm_pz_ps')}" method="post" class="form form-horizontal" id="form-member-add"enctype="multipart/form-data"target="hidden_frame" >
	<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">二维码：</label>
			<div class="formControls col-xs-8 col-sm-9"> 
				<span class="select-box">
					<select class="select valid" size="1" name="rwmid" id="rwmid">
						<option value="" selected="">请选择二维码</option>
						{volist name="rwm" id="vo"}
						<option value="{$vo.id}">二维码编号:{$vo.id}---销售人员{$vo.salesname}</option>
						{/volist}

					</select>
				</span> 
			</div>
	</div>
        <input type="hidden" value="{$mid}" name="mid"/>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" id="sub">
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
{include file="public/footer"} <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本--> 
<script type="text/javascript" src="__STATIC__/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__STATIC__/admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">

//    $(function(){
// 	$('.skin-minimal input').iCheck({
// 		checkboxClass: 'icheckbox-blue',
// 		radioClass: 'iradio-blue',
// 		increaseArea: '20%'
// 	});
	
// 	$("#form-member-add").validate({
// 		rules:{
// 			name:{
// 				required:true,
			
// 			},
// 			type:{
// 				required:true,
				
// 			},

		 
// 		},
// 		onkeyup:false,
// 		focusCleanup:true,
// 		success:"valid",
// 		submitHandler:function(form){
// 			var name=$("#name").val();
//    			var home_id=$("#home_id").val();
//    			var sales_id=$("#sales_id").val();
//    			var type=$("#type").val();
//    			var category=$("#category").val();
//    			var contacts=$("#contacts").val();
//    			var mobile=$("#mobile").val();
//    			var merchant_name=$("#merchant_name").val();
//    			var locat=$("#locat").val();
//    			var address=$("#address").val();
//    			var license_number=$("#license_number").val();
//    			var bnusiness=$("#bnusiness").val();
//    			var period=$("#period").val();
//    			var legal_person=$("#legal_person").val();
//    			var number=$("#number").val();
//    			var account_type=$("#account_type").val();
//    			var opening_bank=$("#opening_bank").val();
//    			var name_bank=$("#name_bank").val();
// 			$.post("{:url('merchant/add')}",{
// 				name:name,
//    				home_id:home_id,
//    				sales_id:sales_id,
//    				type:type,
//    				category:category,contacts:contacts,
//    				mobile:mobile,
//    				merchant_name:merchant_name,
//    				locat:locat,address:address,
//    				license_number:license_number,
//    				bnusiness:bnusiness,
//    				period:period,
//    				legal_person:legal_person,
//    				number:number,
//    				account_type:account_type,
//    				opening_bank:opening_bank,
//    				name_bank:name_bank,},function(res){
// 				if(res == 1){
// 					layer.msg('添加成功',{icon: 1,time:3000,shade: [0.8, '#393D49']},function(index){	
// 							// var index = parent.layer.getFrameIndex(window.name);
// 							//parent.$('.btn-refresh').click();
// 							parent.layer.close(index);
// 							parent.window.location.href="{:url('merchant/index')}";
// 						});	
					
// 				}else if(res == 0){
// 					layer.msg('添加失败',{icon: 2,time: 2000,shade: [0.8, '#393D49']},function(){
						
// 							return false;
// 						});
// 				}
				
				
// 			});
// 			//================
			
// 		}
// 	});
// });
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>